<section class="header-img clearfix">
    <img class="banner" src="<?php echo Yii::app()->request->baseUrl; ?>/img/banner.jpg">
    <div class="expert-view">
        <a href="#">
            <img class="img-responsive"  src="<?php echo Yii::app()->request->baseUrl; ?>/img/supportthecause.png">
        </a>
    </div>
    <div class="facebook-box">
        <a href="#">
            <img class="img-responsive"  src="<?php echo Yii::app()->request->baseUrl; ?>/img/facebook-head.png">
        </a>
    </div>
</section>
<section class="about-heading">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="row">
                    <?php
                    $philosopy = PageContent::getSingleAttributesContent(ABOUT_PAGE_ID, ABOUT_PAGE_CONTENT_ID);
                    if (!empty($philosopy)) {
                        ?>
                        <h1><?php echo $philosopy->page_title; ?></h1>
                        <?php if (!empty($philosopy->photo_name)) { ?>
                            <div class="col-lg-3">
                                <div class="img-container">
                                    <img src="<?php echo (!empty($philosopy->photo_name)) ? Yii::app()->request->baseUrl . ECSconfig::getUploadDir() . 'cms-images/' . $philosopy->photo_name : Yii::app()->request->baseUrl . '/images/stories.gif'; ?>" alt="history" class="img-responsive thumbnail pull-left">  
                                </div>
                            </div>
                            <div class="col-lg-9">
                                <?php echo html_entity_decode($philosopy->page_content); ?>
                            </div>
                            <?php
                        } else {
                            echo html_entity_decode($philosopy->page_content);
                        }
                    }
                    ?>

                </div>


            </div>
        </div>
    </div>
    <div class="gap"></div>
</section>

<div class="gap"></div>
<div class="gap"></div>

<section class="about">
    <div class="container">
        <div class="row">
            <?php
            $aboutUs = PageContent::getmultiAttributesContent(ABOUT_PAGE_ID);
            $i=1;
            foreach ($aboutUs as $about) {
                if($i!=1){
                ?>
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                    <div class="thumbnail">
                        <?php if (!empty($about->photo_name)) { ?>
                            <img src="<?php echo Yii::app()->request->baseUrl . ECSconfig::getUploadDir() . 'cms-images/' . $about->photo_name; ?>" alt="history">
                        <?php } ?> 
                        <div class="caption" style="height:245px;">
                            <h3><?php echo $about->page_title; ?></h3>
                            <p>             
                                <?php echo html_entity_decode(substr($about->page_content, 0, 350)); ?>
                            </p>                            
                        </div>
                            <p style="text-align:center;margin-top: 15px;">
                                <?php if (strlen($about->page_content) > 350) { ?>
                                    <a href="<?php echo Yii::app()->createUrl('/amanmovent-' .  $about->id . '-' .$about->page_seo_title) ?>" class="read-more">Read More</a>
                                <?php } ?>
                            </p>
                    </div>
                </div>
            <?php } $i++;} ?>



        </div>
    </div>
</section>
